package com.atguigu.client.user;

import com.atguigu.ggkt.model.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lxx
 * @version 1.0
 * @since 2022/7/2 10:49
 */
@FeignClient("service-user")
public interface UserInfoFeignClient {

    /**
     * 根据id获取用户信息
     * @param id
     * @return
     */
    @GetMapping("/admin/user/user_info/user/{id}")
    UserInfo getById(@PathVariable Long id);
}
